package cn.tedu.mall.order.mapper;

import cn.tedu.mall.pojo.order.dto.OrderListTimeDTO;
import cn.tedu.mall.pojo.order.model.OmsOrder;
import cn.tedu.mall.pojo.order.vo.OrderDetailVO;
import cn.tedu.mall.pojo.order.vo.OrderListVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OmsOrderMapper {
    //1.新增订单
    void insertOrder(OmsOrder omsOrder);
    //2.查询订单信息
    List<OrderListVO> selectOrdersByTimes(OrderListTimeDTO orderListTimeDTO);
    //3.动态sql修改订单属性，根据给定的id进行修改
    void updateOrderById(OmsOrder omsOrder);
    //4.根据id获取订单详情
    OrderDetailVO  selectOrderById(Long id);
}
